package com.fang.study.config;

import com.fang.study.pojo.Person;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2021/12/20 10:14 下午
 **/
public class FangFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }
}
